<?php

class Tarea_colegio extends CI_Model {
	
	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    function add_tarea_colegio($data_tarea_colegio)
    {
    	$data = array(
			'id_header_formulario' => $data_tarea_colegio['id_header_formulario'],
			'id_tarea' => $data_tarea_colegio['id_tarea'],
			'titulo' => $data_tarea_colegio['titulo']
		);
		log_message('debug', 'insert tarea_colegio:'.$data);    	    	
		$dbRet = $this->db->insert('tarea_colegio', $data); 
	    if (!$dbRet) {
	      $ret['ErrorMessage'] = $this->db->_error_message();
	      $ret['ErrorNumber'] = $this->db->_error_number();
	      log_message('error', "DB Error: (".$ret['ErrorNumber'].") ".$ret['ErrorMessage']);
	    }
    }
  
}

/* End of file tarea_colegio.php */
/* Location: ./application/models/forms/tarea_colegio.php */